<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>案例3 - 清除浮动</title>
    <style>
        /* 计算BFC的高度时，浮动元素也参与计算; */
        .container {
            width: 300px;
            border: 5px solid #fcc;
            overflow: hidden;
        }

        .box {
            float:left;
            width: 100px;
            height: 100px;
            border: 5px solid #f66;
        }
    </style>
</head>

<body>
    <div class="container">
        <div class="box"></div>
        <div class="box"></div>
    </div>
    <ul>
        <li>珠峰培训珠峰培训珠峰培训珠峰培训珠峰培训珠峰培训</li>
        <li>珠峰培训珠峰培训珠峰培训珠峰培训珠峰培训珠峰培训</li>
        <li>珠峰培训珠峰培训珠峰培训珠峰培训珠峰培训珠峰培训</li>
        <li>珠峰培训珠峰培训珠峰培训珠峰培训珠峰培训珠峰培训</li>
        <li>珠峰培训珠峰培训珠峰培训珠峰培训珠峰培训珠峰培训</li>
    </ul>
</body>

</html>